// app.js
App({
  globalData: {
    screenWidth:375,
    screenHeight:667,
    statusBarHeight:20,
    swiperHeight:400
   },
  onLaunch() {
    wx.getSystemInfo({
      success:(res)=> {
       this.globalData.screenHeight=res.screenHeight;
       this.globalData.screenWidth=res.screenWidth;
       this.globalData.statusBarHeight=res.statusBarHeight;
        //  console.log(res);
         this.globalData.swiperHeight=res.screenHeight-res.statusBarHeight-44
      }
    })
  }
})
